import request from '@/utils/request'

// 查询通用机打发票1007列表
export function listTongyongjida(query) {
  return request({
    url: '/doc/tongyongjida/list',
    method: 'get',
    params: query
  })
}

// 查询通用机打发票1007详细
export function getTongyongjida(id) {
  return request({
    url: '/doc/tongyongjida/' + id,
    method: 'get'
  })
}

// 新增通用机打发票1007
export function addTongyongjida(data) {
  return request({
    url: '/doc/tongyongjida',
    method: 'post',
    data: data
  })
}

// 修改通用机打发票1007
export function updateTongyongjida(data) {
  return request({
    url: '/doc/tongyongjida',
    method: 'put',
    data: data
  })
}

// 删除通用机打发票1007
export function delTongyongjida(id) {
  return request({
    url: '/doc/tongyongjida/' + id,
    method: 'delete'
  })
}
